package com.mayn.job;

import org.quartz.DisallowConcurrentExecution;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.mayn.action.updateErrorExpressInfo;

@DisallowConcurrentExecution
public class updateErrorExpressInfoJob implements Job{
	
	private static final Logger LOG =  LoggerFactory.getLogger(updateErrorExpressInfoJob.class);
	@Override
	public void execute(JobExecutionContext context) throws JobExecutionException {
		
		long starTime=System.currentTimeMillis();
		LOG.info("Job开始执行");
		
		updateErrorExpressInfo.updateJd();
		updateErrorExpressInfo.updateSF();
		
		long endTime=System.currentTimeMillis();
		long Time=endTime-starTime;
		LOG.info("Job执行结束,耗时" + Time/1000 + "秒");
	}

}
